package com.lsh.oms.core.utils.customLog;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.net.SyslogAppender;

/**
 * Created by xuzhan on 16/11/17.
 */
public class KafkaLog {

    private static Logger logger = Logger.getLogger(KafkaLog.class);


    private static class KafkaLogLevel extends Level {
        private static final long serialVersionUID = 1076913470822079835L;

        private KafkaLogLevel(int level, String name, int sysLogLevel) {
            super(level, name, sysLogLevel);
        }
    }

    private static final Level BANIT_LOG_LEVEL = new KafkaLogLevel(20050, "BANIT",
            SyslogAppender.LOG_LOCAL0);

    public static void banit(Object pm_objLogInfo) {
        logger.log(BANIT_LOG_LEVEL, pm_objLogInfo);
    }
}
